
// var userCenterPath = 'http://localhost:8001';

$(document).ready(function(){
    dyncHeight(null);
});

dyncHeight = function(h){
    if(isNaN(h)||h==null||h==undefined){
        h = document.body.clientHeight;
    }
    if($('.page').height()!=null||$('.page').height()!=undefined){
        h = $('.page').height() + 100;
    }
    if(h*1<=0*1){
        return;
    }
    $("body").append('<iframe style="display:none;" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'+userCenterPath+'agent?t='+ new Date().getTime()+'#height=' + h + '" ></iframe>');
}